// 初始化按钮状态

export default function updateButtonStatus() {
    const {rosterRefVal, orgVal, pageInfo} = this.state;
    const flag = !parseInt(pageInfo.total);

    this.props.button.setButtonDisabled({
        query: !orgVal.refpk || !rosterRefVal.refpk,
        refresh: !orgVal.refpk || !rosterRefVal.refpk,
        sort: !orgVal.refpk || !rosterRefVal.refpk,
        cardrpt: flag,
        export: flag,
        exportall: flag,
        print: flag,
        output: flag
    });
}
